package com.br.alex.view.bd;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

public class ProjetoCesarDbHelper extends SQLiteOpenHelper {

	public ProjetoCesarDbHelper(Context context) {
		
		super(context,"listFavorito",null,1);
	}

	@Override
	public void onCreate(SQLiteDatabase db) {

		db.execSQL("CREATE TABLE cache(_id INTEGER PRIMARY KEY AUTOINCREMENT," +
				"nome TEXT NOT NULL, icon TEXT, tipo TEXT,coordinates TEXT,snippet TEXT)");
	}

	@Override
	public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
		// TODO Auto-generated method stub
		
	}

}
